package br.unisinos.aidk.samples;

import br.unisinos.aidk.puzzle.EightBoard;
import br.unisinos.aidk.puzzle.EightBoardProblem;
import br.unisinos.aidk.searcher.DepthSearch;
import br.unisinos.aidk.searcher.Searcher;


public class PuzzleGame {

	/**
	 * @param args
	 */
	public static void main(String[] args) {		
		Searcher<EightBoard> s = new Searcher<EightBoard>();
		s.setStrategy(new DepthSearch<EightBoard>(5));
		
		EightBoardProblem p = new EightBoardProblem();	
		int tmp[][] = {{1,2,3},{4,0,5},{7,8,6}}; 
		EightBoard board = new EightBoard(tmp);		
		p.setInitialState(board);
		System.out.println(board);
		System.out.println(s.search(p));
//		n.printAll();	
	}

}
